<template>
  <div class="layout">
    <Sidebar :dataList="dataList" title="标题呀" :="person"></Sidebar>
    <Content></Content>
  </div>
</template>

<script>
import Sidebar from "./Sidebar.vue";
import Content from "./Content.vue";

export default {
  // 注册组件，让这些组件可以使用
  components: {
    Sidebar,
    Content,
  },
  data() {
    return {
      dataList: ["qqqqqqq", "wwwwwww", "eeeeeeee"],
      person:{
        sex:'男',
        name:'mikaisa',
        age:18
      }
    };
  },
};
</script>

<style scoped>
.layout {
  display: flex;
}
</style>